#include "client.h"
#include <string.h>
int enumInt(char *command)
{
    if(strcmp(command,"CD") == 0 || strcmp(command,"cd") == 0)
    {
        return 1;
    }
    else if(strcmp(command,"LS") == 0 || strcmp(command,"ls") == 0)
    {
        return 2;
    }
    else if(strcmp(command,"PWD") == 0 || strcmp(command,"pwd") == 0)
    {
        return 3;
    }
    else if(strcmp(command,"MKDIR") == 0 || strcmp(command,"mkdir") == 0)
    {
        return 7;
    }
    else if(strcmp(command,"RMDIR") == 0 || strcmp(command,"rmdir") == 0)
    {
        return 8;
    }
    else if(strcmp(command,"PUTS") == 0 || strcmp(command,"puts") == 0)
    {
        return 4;
    }
    else if(strcmp(command,"GETS") == 0 || strcmp(command,"gets") == 0)
    {
        return 5;
    }
    else if(strcmp(command,"QUIT") == 0 || strcmp(command,"quit") == 0)
    {
        return 6;
    }
    else if(strcmp(command,"CLOSE") == 0 || strcmp(command,"close") == 0)
    {
        return 16;
    }
    else
    {
        return -1;
    }
}
